#ifndef _CANARY2_HTTP_LLHTTP_ERROR_CATEGORY_H_
#define _CANARY2_HTTP_LLHTTP_ERROR_CATEGORY_H_

#include <system_error>

namespace wilson::http
{
    class llhttp_error_category : public ::std::error_category
    {
    public:
        virtual const char* name() const noexcept override 
            { return "llhttp error"; }

        virtual ::std::string 
        message(int code) const override;

        virtual ::std::error_condition 
        default_error_condition(int code) const noexcept override;
    };

    llhttp_error_category& llhttp_category();
}

#endif
